/* detail.css */

/* 基础布局 */
.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 详情头部样式 */
.detail-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
}

.detail-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4cc9f0;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #8d99ae;
    font-size: 1rem;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-meta i {
    color: #4cc9f0;
    min-width: 1.2rem;
    text-align: center;
}

/* 评分样式 */
.detail-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stars {
    color: #ff9800;
    display: flex;
    gap: 0.2rem;
    font-size: 1.5rem;
}

.rating-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
}

/* 描述区域样式 */
.detail-description {
    background: rgba(29, 53, 87, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    color: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.detail-description p {
    font-size: 1.1rem;
}

/* 评论区样式 */
.comment-section {
    background: rgba(29, 53, 87, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.comment-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
}

.comment-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4cc9f0;
}

/* 评论列表样式 */
.comment-list {
    list-style: none;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comment-item {
    background: rgba(13, 27, 42, 0.8);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.comment-item:hover {
    transform: translateY(-5px);
    border-left-color: #4cc9f0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.comment-author {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author i {
    color: #4cc9f0;
}

.comment-date {
    color: #8d99ae;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.comment-content {
    color: #f8f9fa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 评论表单样式 */
.reply-form,
.new-comment-form {
    margin-top: 1rem;
}

.reply-form textarea,
.new-comment-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f8f9fa;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.reply-form textarea:focus,
.new-comment-form textarea:focus {
    outline: none;
    border-color: #4cc9f0;
}

.reply-form button,
.new-comment-form button {
    padding: 0.7rem 1.5rem;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-form button:hover,
.new-comment-form button:hover {
    background: #3f37c9;
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4361ee;
    color: white;
}

.btn-primary:hover {
    background: #3f37c9;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid #4361ee;
    color: #4361ee;
}

.btn-outline:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-title {
        font-size: 2rem;
    }

    .detail-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .detail-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .rating-value {
        font-size: 1.5rem;
    }

    .detail-description,
    .comment-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 1.8rem;
    }

    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .comment-item {
        padding: 1.2rem;
    }

    .reply-form textarea,
    .new-comment-form textarea {
        min-height: 80px;
    }
}